import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
import * as userApi from '@/api/userApi.js';
import {clearLocalData} from '@/utils/authUtils.js';

export const useSysCommonStore = defineStore('sysCommonStore', () => {

    const doLogout = async () =>{
        userApi.doLogout().then(()=>{
            clearLocalData()
        })
    }

    return { doLogout }
})
